by RaNCiDDeViL
did you ever read a tutorial about something with a web server
that told you to make a file called ".rhost" or ".htaccess"
as if it had no filename and the letters were all in the extention?
and windows wouldn't let you make a file with a name like that,
right? as usual, there is a way around windows's little restriction.
say you want to make .htaccess
1. make a new text file on the desktop and rename with the
"extention" you want, and with a letter in place of the
period (hhtaccess or xhtaccess etc). make sure you have windows
set to show you all extentions or you won't be getting rid of the
.txt!
2. leave the file empty for now (0 bytes).
3. add the file to a new ZIP archive called hi.zip or something.
4. close WinZip.
5. go to Start Button -> Run and type in the following:
edit /70 c:\windows\desktop\hi.zip
6. when in the MS-DOS window, first press the Insert or Ins
key to set overtype mode. the cursor will change to a blinking box
rather than an underscore.
7. you should see the name of your file twice among the rest
of the garbage in the file. in the second instance (closer to the
end of the file), click directly on the first letter (dummy letter
-- h or x or whatever) so it is highlighted by the blinking cursor.
8. type a period, and it will now read ".htaccess"
9. click on the File menu, and select Exit. when it asks
you if you would like to save the file, choose Yes.
10. extract the zip file to the desktop or wherever. you
now have a file called .htaccess that you can load into Notepad
or whatever you want!
NOTE 1: you NEED to have the "/70" switch between
the word "edit" and your path/filename to put the program
into binary editing mode. otherwise it will save it into text format
and it will no longer be a valid ZIP archive (try it -- WinZip will
give you an error). actually the switch tells the program how many
columns to show (the number can be anything up to 78 -- or higher
if you want to have to scroll over). i have no idea why setting
the columns switch also puts the editor into binary format but it
does! :-) if you are not sure what mode you are in (text or binary),
you can tell by looking in the bottom right corner of the program
next to where it says what line and column you are at. in binary
mode there is a third status bar section called "Value"
and in text mode there is just empty space to the right of "Col".
NOTE 2: make sure that when editing the file you do not
insert or delete characters -- just use overtype. if the file ends
up being more or less bytes than it started out as, you will have
a problem. ;-) when you try to open the ZIP file WinZip will say
that there is a difference of X bytes from how many there should
be, where X is the number of characters you inserted or deleted.
Credits:
by RaNCiDDeViL {e-mail: ranciddevil@yahoo.com, aim: miklf}
|